{% extends "base.html" %}

{%block left-banner%}
   {%endblock left-banner%}


 {%block title%}
    {%endblock title%}

 {%block search%}
{%endblock search%}

{%block body%}
<button type="button" class="layui-btn" id="up_yaml">
  <i class="layui-icon">&#xe67c;</i>上传yaml文件
</button>
<script>
layui.use('upload', function(){
  var upload = layui.upload;
  var uploadInst = upload.render({
    elem: '#up_yaml'
    ,url: '/index/up_file'
    ,accept: 'file'
    ,size:10
    ,done: function(res){
    console.log(res);
        layer.msg(res.msg);
       <!--$("#up_yaml").val(res.data);-->
         <!--$("#up_yaml").attr("src", res.fastdfsHost + res.data);-->
         <!--layer.closeAll('loading');-->
    }
    ,error: function(){
      console.log()
    }
  });
});
</script>
{%endblock body%}
